﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminPanel/AdminSite.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="FastTrackCabService.AdminPanel.ChangePassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Fast Track | Change Password</title>
    <link href="../Style/ChangePass.css" rel="stylesheet" type="text/css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table id="tblchangePass">
                <tr>
                    <th colspan="2">
                        <h2>
                            Change Password
                        </h2>
                    </th>
                </tr>
                <tr>
                    <td colspan="2">
                        Current Password
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:TextBox ID="txtCurrentPassword" runat="server" CssClass="changePassTextbox"
                                     MaxLength="40" TextMode="Password">
                        </asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorPass" ForeColor="Red" runat="server"
                                                    ErrorMessage="Current password is required" Text="*" ControlToValidate="txtCurrentPassword"
                                                    ValidationGroup="changePass"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        New Password
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:TextBox ID="txtNewPassword" runat="server" CssClass="changePassTextbox" MaxLength="40"
                                     TextMode="Password">
                        </asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorNewPass" ForeColor="Red" runat="server"
                                                    ErrorMessage="New password is required" Text="*" ControlToValidate="txtNewPassword"
                                                    ValidationGroup="changePass"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        Re-enter New Password
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:TextBox ID="txtReNewPassword" runat="server" CssClass="changePassTextbox" MaxLength="40"
                                     TextMode="Password">
                        </asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorReNewPass" ForeColor="Red"
                                                    runat="server" ErrorMessage="Re-enter new your password" Text="*" ControlToValidate="txtReNewPassword"
                                                    Display="Dynamic" ValidationGroup="changePass"/>
                        <asp:CompareValidator ID="CompareValidatorPass" runat="server" Text="*" ErrorMessage="Passwords are not matching"
                                              ForeColor="Red" ControlToValidate="txtNewPassword" ControlToCompare="txtReNewPassword"
                                              ValidationGroup="changePass" Display="Dynamic"/>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center">
                        <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_OnClick" CssClass="changePassResetButton"
                                    ValidationGroup="NONE"/>
                    </td>
                    <td style="text-align: center">
                        <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_OnClick" Text="Update" CssClass="changePassUpdateButton"
                                    ValidationGroup="changePass"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
                        <asp:ValidationSummary ID="ValidationSummary" runat="server" CssClass="ValidationSummary"
                                               ValidationGroup="changePass" HeaderText="&lt;b&gt;Please fix following error(s):&lt;/b&gt;"
                                               DisplayMode="List"/>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>